package com.taotao.portal.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taotao.portal.service.IItemDescService;

@Controller
@RequestMapping(value = "/item/desc")
public class ItemDescController {
	@Autowired
	private IItemDescService itemDescService;

	@RequestMapping(value = "/{itemId}", produces = MediaType.TEXT_HTML_VALUE
			+ ";charset=utf-8")
	@ResponseBody
	public String getItemDescByItemId(@PathVariable Long itemId) {
		if (null != itemId) {
			String result = this.itemDescService.getItemDescByItemId(itemId);
			return result;
		}

		return "";

	}
}
